import request from '@/utils/request'

// 查询实时调用历史K线列表
export function listSwaprealtimehistoryklinebak(query) {
  return request({
    url: '/swaprealtimehistorykline/swaprealtimehistoryklinebak/list',
    method: 'get',
    params: query
  })
}

// 查询实时调用历史K线详细
export function getSwaprealtimehistoryklinebak(id) {
  return request({
    url: '/swaprealtimehistorykline/swaprealtimehistoryklinebak/' + id,
    method: 'get'
  })
}

// 新增实时调用历史K线
export function addSwaprealtimehistoryklinebak(data) {
  return request({
    url: '/swaprealtimehistorykline/swaprealtimehistoryklinebak',
    method: 'post',
    data: data
  })
}

// 修改实时调用历史K线
export function updateSwaprealtimehistoryklinebak(data) {
  return request({
    url: '/swaprealtimehistorykline/swaprealtimehistoryklinebak',
    method: 'put',
    data: data
  })
}

// 删除实时调用历史K线
export function delSwaprealtimehistoryklinebak(id) {
  return request({
    url: '/swaprealtimehistorykline/swaprealtimehistoryklinebak/' + id,
    method: 'delete'
  })
}
